﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WaveTemplate.aspx.cs" Inherits="WMS6.Web.Outbound.WaveTemplate" %>

<%@ Register Src="../UserControls/MultipleSelectControl.ascx" TagName="MultipleSelectControl"
    TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>WaveTemplate</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />

    <script src="../Js/jquery.js" type="text/javascript"></script>

    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>

    <script src="../Js/util.js" id="js" type="text/javascript"></script>

    <script src="../Js/InitPage.js" type="text/javascript"></script>

    <script src="../Js/jquery.blockUI.js" type="text/javascript"></script>

    <script src="../Js/Ajax.js" type="text/javascript"></script>

    <script type="text/javascript">
        //初始化页面
        window.onload = function(){
            initEditNewPage();
        }
        
        function newWaveTemplate()
        {
            var from = document.getElementById("hdnFrom").value;
            window.location.href = "WaveTemplate.aspx?from="+from;
            return false;
        }
        
        function confirmMsg(code)
        {
            if(code == "C001")
            {
                if(confirm('<%=GetGlobalMsgResource("C001") %>'))
                {
                    return true;
                }
                else
                {
                    return false;
                }
            }
        }
        
         //锁屏
		function blockScreen()
		{
		    //锁屏
		    $.blockUI.defaults.message = GetBlockUIMsg();
            $.blockUI.defaults.overlayCSS.backgroundColor = GetBlockUIBgColor();
            $.blockUI();
		}       
		
		//弹出窗口选择货品
        function selectSku(id)
        {
            var rtnValue = popModalWindow('../Configuration/SkuQuery.aspx?action=txtSkuID', 'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById(id).focus();
                document.getElementById(id).value =  document.getElementById(id).value +","+rtnValue;            
            }
        }
        
         //弹出窗口货品类型
        function selectSkuClass(id) {
            var rtnValue = popModalWindow('../Configuration/SkuClassQuery.aspx?action=txtSkuClass', 'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById(id).focus();
                document.getElementById(id).value = document.getElementById(id).value+","+rtnValue;
            }
        }
        
            //弹出窗口选择货位
        function WaveSelection(id)
        {
            var rtnValue = popModalWindow('../Outbound/WaveSelectionQuery.aspx?action=txtLocTemplateID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById(id).focus();
                document.getElementById(id).value =  document.getElementById(id).value+","+rtnValue;              
            }
        }
        
         //弹出收货人代码
        function selectConsigneeID(id) 
        {
            var rtnValue = popModalWindow('../Configuration/CustomerQuery.aspx?action=txtConsigneeID', 'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
          
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById(id).focus();
                document.getElementById(id).value = document.getElementById(id).value+','+rtnValue;
              
            }
        }
        
           //弹出窗口选择承运商
        function selectCarrier(id)
        {
            var rtnValue = popModalWindow('../Configuration/CarrierQuery.aspx?action=txtCarrierID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById(id).focus();
                document.getElementById(id).value = document.getElementById(id).value+"," +rtnValue;
            
            }
        }
        
         //弹出窗口选择货主
        function selectOwner(id)
        {
            var rtnValue = popModalWindow('../Configuration/OwnerQuery.aspx?action=txtOwnerID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById(id).focus();
                document.getElementById(id).value = document.getElementById(id).value+','+rtnValue;
            }
        }
        
        function selectWaveFlow()
        {
            var rtnValue = popModalWindow('../Outbound/WaveFlowQuery.aspx?action=txtOwnerID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById('txtWaveFlow').focus();
                document.getElementById('txtWaveFlow').value = rtnValue;
            }
        }
        
         function selectWavePreview()
        {
            var rtnValue = popModalWindow('../Outbound/WaveTemplatePreview.aspx?action=txtOwnerID&ID='+ escape(document.getElementById('txtWaveTemplateID').value),'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
        }
        
                  
        function showAction()
		{	
			var pos = getElementPos("btnAction");	
			document.getElementById("actionDiv").style.top = pos.y+17;
			document.getElementById("actionDiv").style.left = pos.x;  			
			document.getElementById("hiddenFlag").value = '1';
		}
		
		   function hiddenDiv()
		{
			var flag = document.getElementById("hiddenFlag").value
			if(flag == "1")
			{
				document.getElementById("actionDiv").style.display = "block";
				document.getElementById("hiddenFlag").value = '0';
			}
			else 
			{
				document.getElementById("actionDiv").style.display = "none";
			}
		}
		
				//锁屏
		function blockScreen()
		{
		    //锁屏
		    $.blockUI.defaults.message = GetBlockUIMsg();
            $.blockUI.defaults.overlayCSS.backgroundColor = GetBlockUIBgColor();
            $.blockUI();
		    
		    //document.getElementById("hdnAction").value = condition;
		    //document.getElementById("btnAction").click();
        }
        
     
        
        function CreateAjaxWaveTemplate()
        {                     
            var url="../Common/ActionAjax.aspx?Type=WaveTemplate&ID="+escape(document.getElementById('txtWaveTemplateID').value);
            XmlHttp.sendReq(url,AjaxReturnData);
            return false;
        }
        
        function AjaxReturnData(obj)
        {      
          document.getElementById('lblMsg').innerHTML=obj.responseText;
        }
    </script>

</head>
<body>
    <form id="F7026" runat="server">
    <div>
        <div id="div_top">
            <table>
                <tr>
                    <td valign="bottom">
                        <asp:Label ID="lblOwner" runat="server" CssClass="label_header" Text="波次模板" meta:resourcekey="lblOwner"></asp:Label>
                    </td>
                    <td>
                        <asp:Button ID="btnGoBack" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnGoBack%>"
                            OnClick="btnGoBack_Click" Enabled="true" />
                    </td>
                    <td>
                        <asp:Button ID="btnNew" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnNew%>"
                            OnClientClick="newWaveTemplate();" Enabled="true" AccessKey="n" />
                    </td>
                    <td>
                        <asp:Button ID="btnSave" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnSave%>"
                            OnClick="btnSave_Click" Enabled="true" AccessKey="s" />
                    </td>
                    <td>
                        <asp:Button ID="btnDelete" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnDelete%>"
                            OnClick="btnDelete_Click" Enabled="true" AccessKey="d" />
                    </td>
                    <td>
                        <asp:Button ID="btnCopy" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnCopy%>"
                            OnClick="btnCopy_Click" Enabled="true" AccessKey="c" />
                    </td>
                    <td>
                        <input id="btnAction" type="button" runat="server" value="<%$Resources:ButtonResource,btnAction%>"
                            class="button" onclick="showAction();" />
                    </td>
                </tr>
            </table>
        </div>
        <div>
            <asp:Label ID="lblMsg" runat="server" CssClass="label_message" meta:resourcekey="lblMsg"></asp:Label>
        </div>
        <div id="div_menu">
            <div style="float: left; width: 8px;">
                <div class="tabL" id="divL1">
                </div>
            </div>
            <div style="float: left;" class="tabLabelCont tabCur" id="divM1">
                <asp:Label ID="one1" CssClass="hover" runat="server" onclick="setTab('one',1,2)">基本信息</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR" id="divR1">
                </div>
            </div>
            <div style="float: left; width: 8px;">
                <div class="tabL_1" id="divL2">
                </div>
            </div>
            <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',2,2)"
                id="divM2">
                <asp:Label ID="one2" CssClass="navigationlabel" runat="server" meta:resourcekey="one2">波次预览信息</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR_1" id="divR2">
                </div>
            </div>
        </div>
        <div id="div_content">
            <div id="con_one_1" style="display: block;">
                <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                    <tr>
                        <td width="180">
                            <asp:Label ID="lblWaveTemplate" runat="server" CssClass="label" Text="波次模板代码"></asp:Label>
                        </td>
                        <td width="180">
                            <asp:Label ID="lblDescr" runat="server" CssClass="label" Text="波次模板描述" meta:resourcekey="lblVAT"></asp:Label>
                        </td>
                        <td width="180">
                            &nbsp;
                        </td>
                        <td width="180">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtWaveTemplateID" runat="server" CssClass="textbox" MaxLength="20"
                                Text=""></asp:TextBox>
                        </td>
                        <td>
                            <asp:TextBox ID="txtDescr" runat="server" CssClass="textbox"></asp:TextBox>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr style="height: 10px;">
                        <td width="180">
                            <asp:Label ID="lblRunMode" runat="server" CssClass="label" Text="运行模式" meta:resourcekey="lblVAT"></asp:Label>
                        </td>
                        <td width="180">
                            <asp:Label ID="lblWaveFlow" runat="server" CssClass="label" Text="波次流程"></asp:Label>
                        </td>
                        <td width="180">
                            <asp:Label ID="lblPriority" runat="server" CssClass="label" Text="优先级" meta:resourcekey="lblPriority"></asp:Label>
                        </td>
                        <td width="180">
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:DropDownList ID="ddlRunMode" runat="server" CssClass="mediumselectbox">
                            </asp:DropDownList>
                        </td>
                        <td>
                            <asp:TextBox ID="txtWaveFlow" runat="server" CssClass="textbox" Text=""></asp:TextBox><img
                                src="../Images/icon_find.gif" alt="select one item" id="img3" runat="server"
                                class="img" onclick="selectWaveFlow();" />
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlPriority" runat="server" CssClass="mediumselectbox" meta:resourcekey="ddlPriority">
                            </asp:DropDownList>
                        </td>
                        <td>
                            <asp:CheckBox ID="chkIsActive" runat="server" Checked="True" CssClass="checkbox"
                                meta:resourcekey="chkIsActive" Text="启用" />
                        </td>
                    </tr>
                    <tr style="height: 10px;">
                        <td width="180">
                        </td>
                        <td width="180">
                        </td>
                        <td width="180">
                        </td>
                        <td width="180">
                        </td>
                    </tr>
                </table>
                <div class="autodiv_input_grouptop">
                    <span id="lblWaveFlows">波次配置</span>
                </div>
                <div class="autodiv_input_groupbody">
                    <table width="720px" style="display: block;">
                        <tr>
                            <td>
                                <asp:CheckBox ID="chkIsActive0" runat="server" CssClass="checkbox" Text="预配库存" Checked="False" />
                            </td>
                            <td>
                                <asp:CheckBox ID="CheckBox1" runat="server" CssClass="checkbox" Text="分配库存" Checked="False" />
                            </td>
                            <td>
                                <asp:CheckBox ID="CheckBox2" runat="server" CssClass="checkbox" Text="触发补货" Checked="False" />
                            </td>
                            <td>
                                <asp:CheckBox ID="CheckBox3" runat="server" CssClass="checkbox" Text="包装处理" Checked="False" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:CheckBox ID="CheckBox4" runat="server" CssClass="checkbox" Text="剔除零拣库存不足订单"
                                    Checked="False" />
                            </td>
                            <td>
                                <asp:DropDownList ID="DropDownList1" runat="server" CssClass="mediumselectbox" Enabled="false">
                                    <asp:ListItem>客户优先级</asp:ListItem>
                                    <asp:ListItem>订单时间</asp:ListItem>
                                    <asp:ListItem>客户优先级+订单时间</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:CheckBox ID="CheckBox5" runat="server" CssClass="checkbox" Text="零拣货位" Checked="False" />
                            </td>
                            <td>
                                <asp:CheckBox ID="CheckBox6" runat="server" CssClass="checkbox" Text="整箱货位" Checked="False" />
                            </td>
                            <td>
                                <asp:CheckBox ID="CheckBox7" runat="server" CssClass="checkbox" Text="整托货位" Checked="False" />
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <asp:CheckBox ID="CheckBox8" runat="server" CssClass="checkbox" Text="零拣库存不满足时不生成波次单"
                                    Checked="false" />
                            </td>
                            <td colspan="2">
                                <asp:CheckBox ID="CheckBox9" runat="server" CssClass="checkbox" Text="波次运行完毕直接打印拣货单"
                                    Checked="false" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:CheckBox ID="CheckBox10" runat="server" CssClass="checkbox" Text="按分区分解拣货单"
                                    Checked="false" />
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr style="height: 10px;">
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                        </tr>
                    </table>
                </div>
                <div class="autodiv_input_grouptop">
                    <span id="lblWaveSelection">波次条件</span>
                </div>
                <div class="autodiv_input_groupbody">
                    <table width="720px" style="display: block;">
                        <tr>
                            <td colspan="2">
                                当前日期前
                                <asp:TextBox ID="txtDaysBefore" CssClass="textbox" Width="30px" runat="server"></asp:TextBox><asp:Label
                                    ID="Label1" runat="server" CssClass="label" Text="天后"></asp:Label>
                                <asp:TextBox ID="txtDaysAfter" CssClass="textbox" Width="30px" runat="server"></asp:TextBox><asp:Label
                                    ID="Label2" runat="server" CssClass="label" Text="天订单"></asp:Label>
                            </td>
                            <td>
                                <asp:DropDownList ID="ddlDate" runat="server" CssClass="mediumselectbox" Enabled="false">
                                    <asp:ListItem>订单时间</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3">
                                当前日期前
                                <asp:TextBox ID="txtHoursBefore" CssClass="textbox" Width="30px" runat="server"></asp:TextBox>
                                <asp:Label ID="Label3" runat="server" CssClass="label" Text="小时"></asp:Label>
                                <asp:TextBox ID="txtMinutesBefore" CssClass="textbox" Width="30px" runat="server"></asp:TextBox><asp:Label
                                    ID="Label4" runat="server" CssClass="label" Text="分钟后"></asp:Label>
                                <asp:TextBox ID="txtHoursAfter" CssClass="textbox" Width="30px" runat="server"></asp:TextBox><asp:Label
                                    ID="Label5" runat="server" CssClass="label" Text="小时"></asp:Label>
                                <asp:TextBox ID="txtMinutesAfter" CssClass="textbox" Width="30px" runat="server"></asp:TextBox><asp:Label
                                    ID="Label6" runat="server" CssClass="label" Text="分钟订单"></asp:Label>
                            </td>
                        </tr>
                        <tr style="height: 10px;">
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:CheckBox ID="ckbWaveGeneratedByOwner" runat="server" Text="按货主生成波次" CssClass="checkbox" />
                            </td>
                            <td>
                            </td>
                            <td>
                                <asp:CheckBox ID="ckbWaveGeneratedByCustomer" runat="server" Text="按客户生成波次" CssClass="checkbox" />
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lblOwnerIncludes" runat="server" CssClass="label" Text="货主包含"></asp:Label>
                            </td>
                            <td>
                                <uc1:MultipleSelectControl ID="MSCOwnerIncludes" runat="server" />
                                <%--<asp:TextBox ID="txtOwnerIncludes" CssClass="textbox" runat="server"></asp:TextBox><img src="../Images/icon_find.gif" id="imgOwnerID" runat="server" alt="select one item"
                                        class="img" onclick="selectOwner('txtOwnerIncludes');" />--%>
                            </td>
                            <td>
                                <asp:Label ID="lblCustomerIncludes" runat="server" CssClass="label" Text="客户包含"></asp:Label>
                            </td>
                            <td>
                                <uc1:MultipleSelectControl ID="MSCCustomerIncludes" runat="server" />
                                <%--<asp:TextBox ID="txtCustomerIncludes" CssClass="textbox" runat="server"></asp:TextBox><img src="../Images/icon_find.gif"
                                            alt="select one item" id="imgConsigneeID" runat="server" class="img" onclick="selectConsigneeID('txtCustomerIncludes');" />--%>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lblOwnerExcludes" runat="server" CssClass="label" Text="货主例外"></asp:Label>
                            </td>
                            <td>
                                <uc1:MultipleSelectControl ID="MSCOwnerExcludes" runat="server" />
                                <%-- <asp:TextBox ID="txtOwnerExcludes" CssClass="textbox" runat="server"></asp:TextBox><img src="../Images/icon_find.gif" id="img2" runat="server" alt="select one item"
                                        class="img" onclick="selectOwner('txtOwnerExcludes');" />--%>
                            </td>
                            <td>
                                <asp:Label ID="lblCustomerExcludes" runat="server" CssClass="label" Text="客户例外"></asp:Label>
                            </td>
                            <td>
                                <uc1:MultipleSelectControl ID="MSCCustomerExcludes" runat="server" />
                                <%--  <asp:TextBox ID="txtCustomerExcludes" CssClass="textbox" runat="server"></asp:TextBox><img src="../Images/icon_find.gif"
                                            alt="select one item" id="img1" runat="server" class="img" onclick="selectConsigneeID('txtCustomerExcludes');" />--%>
                            </td>
                        </tr>
                        <tr style="height: 10px;">
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:CheckBox ID="ckbWaveGeneratedByCarrier" runat="server" Text="按承运商生成波次" CssClass="checkbox" />
                            </td>
                            <td>
                            </td>
                            <td>
                                <asp:CheckBox ID="ckbWaveGeneratedByTransMode" runat="server" Text="按运输方式生成波次" CssClass="checkbox" />
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lblCarrierIncludes" runat="server" CssClass="label" Text="承运商包含"></asp:Label>
                            </td>
                            <td>
                                <uc1:MultipleSelectControl ID="MSCCarrierIncludes" runat="server" />
                                <%--<asp:TextBox ID="txtCarrierIncludes" CssClass="textbox" runat="server"></asp:TextBox><img src="../Images/icon_find.gif"
                                            alt="select one item" class="img" onclick="selectCarrier('txtCarrierIncludes');" />--%>
                            </td>
                            <td>
                                <asp:Label ID="lblTransModeInclues" runat="server" CssClass="label" Text="运输方式包含"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txtTransModeInclues" CssClass="textbox" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lblCarrierExcludes" runat="server" CssClass="label" Text="承运商例外"></asp:Label>
                            </td>
                            <td>
                                <uc1:MultipleSelectControl ID="MSCCarrierExcludes" runat="server" />
                                <%-- <asp:TextBox ID="txtCarrierExcludes" CssClass="textbox" runat="server"></asp:TextBox><img src="../Images/icon_find.gif"
                                            alt="select one item" class="img" onclick="selectCarrier('txtCarrierExcludes');" />--%>
                            </td>
                            <td>
                                <asp:Label ID="lblTransModeExcludes" runat="server" CssClass="label" Text="运输方式例外"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txtTransModeExcludes" CssClass="textbox" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr style="height: 10px;">
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lblRouteIncludes" runat="server" CssClass="label" Text="路线包含"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txtRouteIncludes" CssClass="textbox" runat="server"></asp:TextBox>
                            </td>
                            <td>
                                <asp:Label ID="lblVehicleIncludes" runat="server" CssClass="label" Text="车号包含"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txtVehicleIncludes" CssClass="textbox" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lblRouteExcludes" runat="server" CssClass="label" Text="路线例外"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txtRouteExcludes" CssClass="textbox" runat="server"></asp:TextBox>
                            </td>
                            <td>
                                <asp:Label ID="lblVehicleExcludes" runat="server" CssClass="label" Text="车号例外"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txtVehicleExcludes" CssClass="textbox" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr style="height: 10px;">
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lblDriverIncludes" runat="server" CssClass="label" Text="司机包含"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txtDriverIncludes" CssClass="textbox" runat="server"></asp:TextBox>
                            </td>
                            <td>
                                <asp:Label ID="lblZoneIncludes" runat="server" CssClass="label" Text="区域包含"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txtZoneIncludes" CssClass="textbox" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lblDriverExcludes" runat="server" CssClass="label" Text="司机例外"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txtDriverExcludes" CssClass="textbox" runat="server"></asp:TextBox>
                            </td>
                            <td>
                                <asp:Label ID="lblZoneExcludes" runat="server" CssClass="label" Text="区域例外"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txtZoneExcludes" CssClass="textbox" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr style="height: 10px;">
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lblProvinceIncludes" runat="server" CssClass="label" Text="省份包含"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txtProvinceIncludes" CssClass="textbox" runat="server"></asp:TextBox>
                            </td>
                            <td>
                                <asp:Label ID="lblCityIncludes" runat="server" CssClass="label" Text="城市包含"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txtCityIncludes" CssClass="textbox" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lblProvinceExcludes" runat="server" CssClass="label" Text="省份例外"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txtProvinceExcludes" CssClass="textbox" runat="server"></asp:TextBox>
                            </td>
                            <td>
                                <asp:Label ID="lblCityExcludes" runat="server" CssClass="label" Text="城市例外"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txtCityExcludes" CssClass="textbox" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr style="height: 10px;">
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lblOrderTypeIncludes" runat="server" CssClass="label" Text="订单类型包含"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txtOrderTypeIncludes" CssClass="textbox" runat="server"></asp:TextBox>
                            </td>
                            <td>
                                <asp:Label ID="lblOrderStatusIncludes" runat="server" CssClass="label" Text="订单状态包含"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txtOrderStatusIncludes" CssClass="textbox" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lblOrderTypeExcludes" runat="server" CssClass="label" Text="订单类型例外"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txtOrderTypeExcludes" CssClass="textbox" runat="server"></asp:TextBox>
                            </td>
                            <td>
                                <asp:Label ID="lblOrderStatusExcludes" runat="server" CssClass="label" Text="订单状态例外"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txtOrderSatausExcludes" CssClass="textbox" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr style="height: 10px;">
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lblSkuIncludes" runat="server" CssClass="label" Text="货品代码包含"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txtSkuIncludes" runat="server" CssClass="textbox"></asp:TextBox><img
                                    src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selectSku('txtSkuIncludes');" />
                            </td>
                            <td>
                                <asp:Label ID="lblOrderQty" runat="server" CssClass="label" Text="货品数量"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txtOrderQty" runat="server" CssClass="textbox"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lblSkuExcludes" runat="server" CssClass="label" Text="货品代码例外"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txtSkuExcludes" runat="server" CssClass="textbox"></asp:TextBox><img
                                    src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selectSku('txtSkuExcludes');" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:CheckBox ID="ckbSingleItemWave" runat="server" CssClass="checkbox" Text="单品" />
                            </td>
                            <td>
                                <asp:CheckBox ID="ckbMultiItemWave" runat="server" CssClass="checkbox" Text="多品" />
                            </td>
                            <td>
                                <asp:CheckBox ID="ckbSecKillWave" runat="server" CssClass="checkbox" Enabled="false"
                                    Text="秒杀" Checked="false" />
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr style="height: 10px;">
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lblSkuClassIncludes" runat="server" CssClass="label" Text="货品分类包含"></asp:Label>
                            </td>
                            <td>
                                <uc1:MultipleSelectControl ID="MSCSkuClassIncludes" runat="server" />
                                <%--<asp:TextBox ID="txtSkuClassIncludes" runat="server" CssClass="textbox"></asp:TextBox><img src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selectSkuClass('txtSkuClassIncludes');" />
                       --%>
                            </td>
                            <td>
                                <asp:Label ID="lblSkuStyleIncludes" runat="server" CssClass="label" Text="货品款式包含"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txtSkuStyleIncludes" runat="server" CssClass="textbox"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lblSkuClassExcludes" runat="server" CssClass="label" Text="货品分类例外"></asp:Label>
                            </td>
                            <td>
                                <uc1:MultipleSelectControl ID="MSCSkuClassExcludes" runat="server" />
                                <%--  <asp:TextBox ID="txtSkuClassExcludes" runat="server" CssClass="textbox"></asp:TextBox><img src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selectSkuClass('txtSkuClassExcludes');" />
                       --%>
                            </td>
                            <td>
                                <asp:Label ID="lblSkuStyleExcludes" runat="server" CssClass="label" Text="货品款式例外"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txtSkuStyleExcludes" runat="server" CssClass="textbox"></asp:TextBox>
                            </td>
                        </tr>
                        <tr style="height: 10px;">
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lblWaveSelections" runat="server" CssClass="label" Text="波次约束筛选条件"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="txtWaveSelections" runat="server" CssClass="textbox"></asp:TextBox><img
                                    src="../Images/icon_find.gif" alt="select one item" class="img" onclick="WaveSelection('txtWaveSelections');" />
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr style="height: 10px;">
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                        </tr>
                    </table>
                </div>
                <div class="autodiv_input_grouptop">
                    <span id="lblWaveCapacity" >波次容量</span>
                </div>
                <div class="autodiv_input_groupbody">
                    <table width="720px" style="display: block;">
                        <tr>
                            <td>
                                <asp:Label ID="lblMinOrders" runat="server" CssClass="label" Text="波次最小订单数量" />
                            </td>
                            <td>
                                <asp:TextBox ID="txtMinOrders" runat="server" CssClass="textbox"></asp:TextBox>
                            </td>
                            <td>
                                <asp:Label ID="lblMaxOrders" runat="server" CssClass="label" Text="波次最大订单数量" />
                            </td>
                            <td>
                                <asp:TextBox ID="txtMaxOrders" runat="server" CssClass="textbox"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lblMinOrderLines" runat="server" CssClass="label" Text="波次最小订单行数量" />
                            </td>
                            <td>
                                <asp:TextBox ID="txtMinOrderLines" runat="server" CssClass="textbox"></asp:TextBox>
                            </td>
                            <td>
                                <asp:Label ID="lblMaxOrderLines" runat="server" CssClass="label" Text="波次最大订单行数量" />
                            </td>
                            <td>
                                <asp:TextBox ID="txtMaxOrderLines" runat="server" CssClass="textbox"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lblMinSkus" runat="server" CssClass="label" Text="波次最小货品品种" />
                            </td>
                            <td>
                                <asp:TextBox ID="txtMinSkus" runat="server" CssClass="textbox"></asp:TextBox>
                            </td>
                            <td>
                                <asp:Label ID="lblMaxSkus" runat="server" CssClass="label" Text="波次最大货品品种" />
                            </td>
                            <td>
                                <asp:TextBox ID="txtMaxSkus" runat="server" CssClass="textbox"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lblMinQty" runat="server" CssClass="label" Text="波次最小货品数量" />
                            </td>
                            <td>
                                <asp:TextBox ID="txtMinQty" runat="server" CssClass="textbox"></asp:TextBox>
                            </td>
                            <td>
                                <asp:Label ID="lblMaxQty" runat="server" CssClass="label" Text="波次最大货品数量" />
                            </td>
                            <td>
                                <asp:TextBox ID="txtMaxQty" runat="server" CssClass="textbox"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lblMinWeight" runat="server" CssClass="label" Text="波次最小总重量" />
                            </td>
                            <td>
                                <asp:TextBox ID="txtMinWeight" runat="server" CssClass="textbox"></asp:TextBox>
                            </td>
                            <td>
                                <asp:Label ID="lblMaxWeigth" runat="server" CssClass="label" Text="波次最大总重量" />
                            </td>
                            <td>
                                <asp:TextBox ID="txtMaxWeigth" runat="server" CssClass="textbox"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lblMinVolume" runat="server" CssClass="label" Text="波次最小体积" />
                            </td>
                            <td>
                                <asp:TextBox ID="txtMinVolume" runat="server" CssClass="textbox"></asp:TextBox>
                            </td>
                            <td>
                                <asp:Label ID="lblMaxVolume" runat="server" CssClass="label" Text="波次最大体积" />
                            </td>
                            <td>
                                <asp:TextBox ID="txtMaxVolume" runat="server" CssClass="textbox"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <div id="con_one_2" style="display: none; overflow-x: auto; overflow-y: hidden;">
                <div id="div_List">
                    <asp:GridView ID="gvOrder" runat="server" AutoGenerateColumns="False" AllowSorting="True"
                        CssClass="gridview" PageSize="20" Width="850px" OnRowDataBound="gvOrder_RowDataBound"
                        meta:resourcekey="gvOrderSelection">
                        <FooterStyle CssClass="GridViewFooterStyle" />
                        <RowStyle CssClass="GridViewRowStyle" />
                        <HeaderStyle CssClass="GridViewHeaderStyle" />
                        <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                        <Columns>
                            <asp:BoundField HeaderText="序号" FooterText="序号" meta:resourcekey="No">
                                <ItemStyle CssClass="GridViewRowWidth_40" />
                            </asp:BoundField>
                            <asp:BoundField DataField="OrderID" HeaderText="发货订单号" FooterText="发货订单号">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="LineID" HeaderText="发货订单号" FooterText="发货订单号">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="OwnerID" HeaderText="货主" FooterText="货主">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Status" HeaderText="状态" FooterText="状态">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="ConsigneeID" HeaderText="客户代码" FooterText="客户代码" SortExpression="ConsigneeID"
                                meta:resourcekey="ConsigneeID">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="CarrierID" HeaderText="承运商" FooterText="承运商" SortExpression="CarrierID"
                                meta:resourcekey="ConsigneeID">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="TransportationMode" HeaderText="运输方式" FooterText="运输方式"
                                SortExpression="TransportationMode" meta:resourcekey="TransportationMode">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                        </Columns>
                    </asp:GridView>
                </div>
            </div>
        </div>
        <div id="actionDiv" style="background-color: #FFFFFF; position: absolute; display: none;
            border: none 0 black">
            <table width="105" border="0" cellspacing="0" cellpadding="0" id="divcontent_menu">
                <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                    <td class="line" id="tdlnkbtnPreviewWave" runat="server">
                        <asp:LinkButton ID="lnkbtnPreviewWave" runat="server" Text="预览波次" OnClientClick="blockScreen();"
                            OnClick="lnkbtnPreviewWave_Click"></asp:LinkButton>
                    </td>
                </tr>
                <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                    <td class="line" id="tdlnkbtnCreateWave" runat="server">
                        <asp:LinkButton ID="lnkbtnCreateWave" runat="server" Text="生成波次" OnClick="lnkbtnCreateWave_Click"
                            OnClientClick=" blockScreen();"></asp:LinkButton>
                    </td>
                </tr>
            </table>
        </div>
        <input id="hdnFrom" runat="server" type="hidden" />
        <input type="hidden" id="hiddenFlag" />

        <script src="../Js/calendar.js" type="text/javascript" charset="gb2312"></script>

        <link href="../Js/JqueryPlugin/jquery.multiselect.css" rel="stylesheet" type="text/css" />
        <link href="../Js/JqueryPlugin/jquery.ui.css" rel="stylesheet" type="text/css" />

        <script src="../Js/JqueryPlugin/jquery.multiselect.min.js" type="text/javascript"></script>

    </div>
    </form>
</body>
</html>

<script language="javascript" type="text/javascript" event="onclick" for="document">
		<!--
			hiddenDiv();
		  
		//-->
</script>

